/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021.
 * Description: Initialize the kernel symbol buffer.
 * Author: hanzongcheng
 * Create: 2021-06-15
 */
#include <asm/bitsperlong.h>
#if BITS_PER_LONG == 64
#define PTR .quad
#define ALGN .balign 8
#else
#define PTR .long
#define ALGN .balign 4
#endif
	.section .rodata, "a"

/* Initialize kallsyms_* pointers */
.globl kallsyms_offsets
	ALGN
kallsyms_offsets:
	PTR	rtos_kallsyms_offsets

.globl kallsyms_names
	ALGN
kallsyms_names:
	PTR	rtos_kallsyms_names

.globl kallsyms_token_table
	ALGN
kallsyms_token_table:
	PTR	rtos_kallsyms_token_table

.globl kallsyms_token_index
	ALGN
kallsyms_token_index:
	PTR	rtos_kallsyms_token_index

.globl kallsyms_markers
	ALGN
kallsyms_markers:
	PTR	rtos_kallsyms_markers

.globl kallsyms_num_syms
	ALGN
kallsyms_num_syms:
	.long	0

/*
 * When KALLSYMS is turned on, the first element of
 * the symbol buff will be accessed even though
 * kallsyms_num_syms is '0'. So initialize the first
 * element to prevent out-of-bounds access.
 */
.globl rtos_kallsyms_offsets
	ALGN
rtos_kallsyms_offsets:
	.long 0

.globl rtos_kallsyms_names
	ALGN
rtos_kallsyms_names:
	.byte 0x0

.globl rtos_kallsyms_markers
	ALGN
rtos_kallsyms_markers:
	.long 0

.globl rtos_kallsyms_token_table
	ALGN
rtos_kallsyms_token_table:
	.asciz	""

.globl rtos_kallsyms_token_index
	ALGN
rtos_kallsyms_token_index:
	.short	0

